﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true" CodeBehind="students_evaluations.aspx.cs" Inherits="School.Pages.Evaluation.students_evaluations" %>
<%@ Register src="../UserControls/evaluation.ascx" tagname="evaluation" tagprefix="uc1" %>
<%@ Register src="../UserControls/evaluation_student.ascx" tagname="evaluation_student" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table style="width: 100%">
        <tr>
            <td style="width: 277px">
                &nbsp;</td>
            <td align="right" colspan="2">
                <uc2:evaluation_student ID="evaluation_student1" runat="server" />
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 277px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 277px">
                &nbsp;</td>
            <td align="right">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            EnableViewState="False" onrowcancelingedit="GridView1_RowCancelingEdit" 
                            onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating" 
                            BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" 
                            CellPadding="3" GridLines="Horizontal" Width="500px" >
                            <AlternatingRowStyle BackColor="#F7F7F7" />
                      <Columns>
                      <asp:TemplateField  >
                      <ItemTemplate>
                      <asp:Label runat="server" Text='<%# Bind("id") %>' ID="l_id" />
                      </ItemTemplate>
                      <EditItemTemplate>
                  <asp:TextBox runat="server" Text='<%# Bind("id") %>' ID="l_id" />
                      </EditItemTemplate>
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="اسم الطالب">
                      <ItemTemplate>
                      <asp:Label runat="server" Text='<%# Bind("name") %>' ID="l_name" />
                      </ItemTemplate>
                      <EditItemTemplate>
                  <asp:Label runat="server" Text='<%# Bind("name") %>' ID="l_name" />
                      </EditItemTemplate>
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="درجة الطالب">
                      <ItemTemplate>
                      <asp:Label runat="server" Text='<%# Bind("degree") %>' ID="l_degree" />
                      </ItemTemplate>
                      <EditItemTemplate>
                  <asp:TextBox runat="server" Text='<%# Bind("degree") %>' ID="t_degree" />
                          <asp:CompareValidator ID="CompareValidator1" runat="server" 
                              ControlToValidate="t_degree" ErrorMessage="برجاء ادخال درجه بطريقه صحيحه" 
                              ForeColor="Red" Operator="DataTypeCheck" Type="Double"></asp:CompareValidator>
                      </EditItemTemplate>
                      </asp:TemplateField>
                      <asp:CommandField ShowEditButton="true" CausesValidation="false" EditText="تعديل او اضافه" HeaderText="تعديل او اضافه"/>
                      
                      </Columns>
                            <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                            <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                            <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                            <SortedAscendingCellStyle BackColor="#F4F4FD" />
                            <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
                            <SortedDescendingCellStyle BackColor="#D8D8F0" />
                            <SortedDescendingHeaderStyle BackColor="#3E3277" />
                        </asp:GridView>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
